package cn.cvs.mapper.sysUser;

import cn.cvs.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 用户接口
 */

public interface SysUserMapper {
    int getCount(@Param("roleId") int roleId, @Param("realName") String realName);

    List<SysUser> getUserListByRoleIdAndRealName(@Param("roleId") int roleId, @Param("realName") String realName, @Param("pageSize") int pageSize, @Param("pageNo") int pageNo);

    int updateUser(SysUser user);

    int deleteUser(List<Integer> ids);

    SysUser getUser(int userId);

    SysUser getUserByAccountAndPwd(@Param("account") String account, @Param("password") String password);

    int addUser(SysUser user);

    SysUser getUserByIdAndPwd(@Param ( "id" )Integer id,@Param ( "password" ) String pwd);

}
